function addOrUpdateUser(){
				if($("#username").val() == ""){
					alert("请输入用户名！");
				}else if($("#password").val() == ""){
					alert("请输入密码！");
				}else if($("#truename").val() == ""){
					alert("真实姓名！");
				}else if($("#sfzh").val() == ""){
					alert("请输入证件号码！");
				}else{
					//获取选中的角色
					var role = "";
					$("input[name='role']:checked").each(function () {
						role += this.value + ";";
	                }) 
					var oParam = JSON.stringify({
						id:$("#id").val(),
						username:$("#username").val(),
						password:$("#password").val(),
						truename:$("#truename").val(),
						sfzh:$("#sfzh").val(),
						department:$("#department").val(),
						telephone:$("#telephone").val(),
						email:$("#email").val(),
						role:role
					})
					$.ajax({
						url : "${ctx}/user",
						data : oParam,
						type : 'PUT',
						dataType : 'json',
						async : true,
						contentType : 'application/json',
						success : function(data){
							if(data.message != null && data.message != ""){
								alert(data.message);
							}else{
								alert("操作成功！");
							}
						},
						error : function(data){
							alert("操作失败！");
						}
					});
				}
			}